package test_unitaire;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import buisness_service.Finance_annee;
import buisness_service.Finance_mois;
import buisness_service.Rapport;
import buisness_service.Rapport.Mois;
import buisness_service.User;

public class Test_Revenu_annee {

	@Test
	public void testRevenu_annee() {

		User u = new User();
		Finance_annee f = new Finance_annee(2000,u.getRapport());
		Rapport.rechercher_annee(2000, u.getRapport());
		Finance_mois f_m = new Finance_mois(Mois.Aout, f, u );
		assertTrue(f.getRevenu_annee().getFinance_annee() == f);
		assertTrue(f.getRevenu_annee().getRevenu_mois().get(0) == f_m
				.getRev_mois());
		

	}

}
